package com.xyzh.stj.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyzh.application.base.entity.BasicEntity;

import com.xyzh.application.common.annotations.UniqueCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author @JZB
 * @since 2023-10-29
 */
@Getter
@Setter
@TableName("role")
@ApiModel(value = "RoleEntity对象", description = "角色")
public class RoleEntity extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.NONE)
    private String id;

    @ApiModelProperty("角色代码")
    @UniqueCheck
    private String code;

    @ApiModelProperty("角色名称")
    private String name;


}
